package com.gelsanalyzer.application;

import javax.swing.table.*;

import org.apache.log4j.*;

import com.gelsanalyzer.business.*;
import com.gelsanalyzer.mvc.model.*;

public class CourseEntryModel extends AbstractModel {
    private static final Logger log = Logger.getLogger(CourseEntryModel.class);
    private TableModel innerModel;
    
    public CourseEntryModel() {
        
    }
    public void setAddedCourse(Course course) {
        log.info("inside of the setAddedCourse()");
        ((CourseEntryList)innerModel).addCourse(course);
    }
    
    public void setRemovedCourse(Course course) {
        log.info("inside of the setRemovedCourse()");
        ((CourseEntryList)innerModel).removeCourse(course);
    }
   
    public void setAbstractTableModel(TableModel tableModel) {
        this.innerModel = tableModel;
    }
    
    public TableModel getAbstractTableModel() {
        return innerModel;
    }
    public void initData() {
        //firePropertyChange(null, null, null);
    }
}
